using System;

namespace FaceRecognitionDemo.Models
{
    /// <summary>
    /// 人脸特征信息实体类
    /// </summary>
    public class Face
    {
        /// <summary>
        /// 人脸ID
        /// </summary>
        public int Id { get; set; }
        
        /// <summary>
        /// 关联的人员ID
        /// </summary>
        public int PersonId { get; set; }
        
        /// <summary>
        /// 人脸特征数据
        /// </summary>
        public float[] Feature { get; set; }
        
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadTime { get; set; } = DateTime.Now;
        
        /// <summary>
        /// 标签信息
        /// </summary>
        public string? Tag { get; set; }
        
        /// <summary>
        /// 图片哈希值
        /// </summary>
        public string ImageHash { get; set; }
        
        /// <summary>
        /// 是否为主图片
        /// </summary>
        public bool IsPrimary { get; set; } = false;
      
        /// <summary>
        /// 样本图片原始路径
        /// </summary>
        public string SampleImagePath { get; set; } 
    
        // /// <summary>
        // /// 人脸标记文件二进制信息
        // /// </summary>
        // public byte[] FaceMarkData { get; set; } 
        //
        // /// <summary>
        // /// 人脸标记图片路径
        // /// </summary>
        // public string FaceMarkImagePath { get; set; } 
        
        /// <summary>
        /// 人脸位置信息
        /// </summary>
        public String Location { get; set; }

        /// <summary>
        /// 人脸置信度
        /// </summary>
        public float Score { get; set; }
    }
}